package com.ks.app.admin.hibernate;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * KsOperaterLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="KS_OPERATER_LOG")
public class KsOperaterLog  implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	// Fields    

     private long id;              //主键
     private String operater;      //用户
     private String content;       //日志内容
     private Date logtime;         //记录时间
     private int logtype;          //日志类型      1 操作日志，2客户端日志
     private int status;           //日志处理状态  2 已处理，  1 未处理
     private String opename;       //操作名称


    // Constructors

    /** default constructor */
    public KsOperaterLog() {
    }

    
    /** full constructor */
    public KsOperaterLog(String operater, String content, Date logtime, int logtype, int status) {
        this.operater = operater;
        this.content = content;
        this.logtime = logtime;
        this.logtype = logtype;
        this.status = status;
    }

    
   
    public KsOperaterLog(String operater, String content, Date logtime,
			int logtype, int status, String opename) {
		super();
		this.operater = operater;
		this.content = content;
		this.logtime = logtime;
		this.logtype = logtype;
		this.status = status;
		this.opename = opename;
	}


	// Property accessors
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="log_gen")
    @SequenceGenerator(name="log_gen",sequenceName="KS_OPERATER_LOG_SEQ")
    @Column(name="ID", unique=true, nullable=false, precision=20, scale=0)
    public long getId() {
        return this.id;
    }
    
    public void setId(long id) {
        this.id = id;
    }
    
    @Column(name="OPERATER", length=30)
    public String getOperater() {
        return this.operater;
    }
    
    public void setOperater(String operater) {
        this.operater = operater;
    }
    
    @Column(name="CONTENT", length=500)
    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="LOGTIME", length=7)
    public Date getLogtime() {
        return this.logtime;
    }
    
    public void setLogtime(Date logtime) {
        this.logtime = logtime;
    }
    
    @Column(name="LOGTYPE", precision=1, scale=0)
    public int getLogtype() {
        return this.logtype;
    }
    
    public void setLogtype(int logtype) {
        this.logtype = logtype;
    }
    
    @Column(name="STATUS", precision=1, scale=0)
    public int getStatus() {
        return this.status;
    }
    
    public void setStatus(int status) {
        this.status = status;
    }

    @Column(name="OPENAME", length=50)
	public String getOpename() {
		return opename;
	}

	public void setOpename(String opename) {
		this.opename = opename;
	}
   
    







}